package com.powernode.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 订单项
 * @TableName order_item
 */
@TableName(value ="order_item")
@Data
public class OrderItem implements Serializable {
    /**
     * 订单项ID
     */
    @TableId(value = "order_item_id", type = IdType.AUTO)
    private Long order_item_id;

    /**
     * 店铺id
     */
    @TableField(value = "shop_id")
    private Long shop_id;

    /**
     * 订单order_number
     */
    @TableField(value = "order_number")
    private String order_number;

    /**
     * 产品ID
     */
    @TableField(value = "prod_id")
    private Long prod_id;

    /**
     * 产品SkuID
     */
    @TableField(value = "sku_id")
    private Long sku_id;

    /**
     * 购物车产品个数
     */
    @TableField(value = "prod_count")
    private Integer prod_count;

    /**
     * 产品名称
     */
    @TableField(value = "prod_name")
    private String prod_name;

    /**
     * sku名称
     */
    @TableField(value = "sku_name")
    private String sku_name;

    /**
     * 产品主图片路径
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 产品价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 商品总金额
     */
    @TableField(value = "product_total_amount")
    private BigDecimal product_total_amount;

    /**
     * 购物时间
     */
    @TableField(value = "create_time")
    private LocalDateTime create_time;

    /**
     * 评论状态： 0 未评价  1 已评价
     */
    @TableField(value = "comm_sts")
    private Integer comm_sts;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}